package org.natcor.bio.repository;

import org.natcor.bio.domain.Usuario;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface UsuarioRepository extends JpaRepository<Usuario, String> {

	@Query("select c from Usuario c where c.username = :username")
	Usuario findByUserName(@Param("username") String username);

}
